package Demo16_30.Test25;

/**
 * Created by 14229 on 2020/1/31.
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("Demo16_30.Test25.Apple");

        FruitName annotation =(FruitName) aClass.getAnnotation(FruitName.class);
        String value = annotation.value();


        System.out.println(value);
    }
}
